package example;

class FushiApple{}


public class InnerClass {
    int i;
    FushiApple ap1;

    InnerClass1 creater(){
        return new InnerClass1();
    }


    void f(){
        System.out.println("hello");
        ap1=new FushiApple();
    }

    class InnerClass1{
        int in1;
        void inf(){
            System.out.println("Hello,this is Innerclass");
        }

    }

    public static void main(String[] args) {
        InnerClass in=new InnerClass();
        //InnerClass1 in1=InnerClass.InnerClass1.new()
        InnerClass1 in1=in.creater();
        in1.inf();

        InnerClass1 in2=in.new InnerClass1();


    }

}
